Skip to content

Huge refactoring of language server #89

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 76 commits into from
Dec 13, 2021
Merged

Huge refactoring of language server #89

merged 76 commits into from
Dec 13, 2021

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Nov 23, 2021

  • moved LSP protocol related stuff into a proper go library
  • allow using the arduino-cli gRPC daemon instead of running barebone cmdline arduino-cli
  • reorganization of the repository
  • cleanup of the sketch rebuild triggering functions
  • better logging
  • a lot of small cleanups

The sketch build may be interrupted if new changes comes during the
build (invalidating it).

Since we auto rebuild on every change we do not need to monitor includes
or symbols anymore greatly reducing code complexity.

Build progress is no more handled by a goroutine, we lose the cycling
dots (. -> .. -> ...) but we simplify the code a lot.

The compile_commands.json is now kept separated from the one created by
the CLI (that is touched multiple times, and it confuses clangd). Now
the compile_commands.json seen by clangd is touched only once after a
successful build.
@hendrikmennen
Copy link

Great! This fixes #85.
Completion does not seem to work yet, but still very nice to see some progress :)

@per1234 per1234 linked an issue Nov 25, 2021 that may be closed by this pull request
@cmaglie cmaglie marked this pull request as ready for review December 13, 2021 09:20
@cmaglie cmaglie merged commit 72fc111 into main Dec 13, 2021
@cmaglie cmaglie deleted the megarefactoring branch December 13, 2021 09:23
@per1234 per1234 added the type: enhancement Proposed improvement label Jul 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DidChange not working as expected
3 participants